import React, { Component } from 'react'
import {Toast} from 'antd-mobile';
export default class NotFound extends Component {
  static contextTypes = {
    router: React.PropTypes.object.isRequired
  }

  componentWillMount() {
    Toast.fail('此页面暂无内容',2, null, false)
    //window.location.href = '/#/Home'；
    this.context.router.push({
       pathname: '/Home'
    })
  }

  render () {
    // 非实体组件需显式返回 null
    return null
  }
}
